package com.kinghood.infrastructure.model.dto;

import java.io.Serializable;
import java.util.List;

public class BaseCommonReqDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    public Long id;
    public List<Long> ids;
    public String code;
    private List<String> codes;

    public BaseCommonReqDTO() {
    }

    public long getId() {
        return this.id;
    }

    public List<Long> getIds() {
        return this.ids;
    }

    public String getCode() {
        return this.code;
    }

    public List<String> getCodes() {
        return this.codes;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setIds(List<Long> ids) {
        this.ids = ids;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setCodes(List<String> codes) {
        this.codes = codes;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof BaseCommonReqDTO)) {
            return false;
        } else {
            BaseCommonReqDTO other = (BaseCommonReqDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (this.getId() != other.getId()) {
                return false;
            } else {
                label49: {
                    Object this$ids = this.getIds();
                    Object other$ids = other.getIds();
                    if (this$ids == null) {
                        if (other$ids == null) {
                            break label49;
                        }
                    } else if (this$ids.equals(other$ids)) {
                        break label49;
                    }

                    return false;
                }

                Object this$code = this.getCode();
                Object other$code = other.getCode();
                if (this$code == null) {
                    if (other$code != null) {
                        return false;
                    }
                } else if (!this$code.equals(other$code)) {
                    return false;
                }

                Object this$codes = this.getCodes();
                Object other$codes = other.getCodes();
                if (this$codes == null) {
                    if (other$codes != null) {
                        return false;
                    }
                } else if (!this$codes.equals(other$codes)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof BaseCommonReqDTO;
    }

    public int hashCode() {
        int result = 1;
        long $id = this.getId();
        result = result * 59 + (int)($id >>> 32 ^ $id);
        Object $ids = this.getIds();
        result = result * 59 + ($ids == null ? 43 : $ids.hashCode());
        Object $code = this.getCode();
        result = result * 59 + ($code == null ? 43 : $code.hashCode());
        Object $codes = this.getCodes();
        result = result * 59 + ($codes == null ? 43 : $codes.hashCode());
        return result;
    }

    public String toString() {
        return "BaseCommonReqDTO(id=" + this.getId() + ", ids=" + this.getIds() + ", code=" + this.getCode() + ", codes=" + this.getCodes() + ")";
    }
}
